package com.cty.service;

import com.cty.pojo.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @Auther: cty
 * @Date: 2020/2/22 10:24
 * @Description:
 * @version: 1.0
 */
public interface UserService {
    /**
     * 用户登录校验服务
     * @param uanme
     * @param pwd
     * @return
     */
    User checkUserLoginService(String uanme, String pwd);

    /**
     * 用户修改密码服务
     * @param uid
     * @param uname
     * @param newPwd
     * @return
     */
    int pwdChangeService(int uid, String uname, String newPwd);

    /**
     * 获取所有用户信息服务
     * @return
     */
    List<User> userShowService();

    /**
     * 用户注册服务
     * @param req
     * @param resp
     * @return
     */
    int userRegService(HttpServletRequest req, HttpServletResponse resp);
}
